Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / IntervalArray<T> Class / Swap Method
The IntervalArray that contains the data to swap.
A 32-bit integer that represents the index in the source at which swapping begins.
The IntervalArray that receives the data.
A 32-bit integer that represents the index in the target at which storing begins.
A 32-bit integer that represents the number of elements to swap.


In This Topic
    Swap Method (IntervalArray<T>)
    In This Topic
    Swaps a range of elements from an IntervalArray starting at the specified source index with another IntervalArray starting at the specified target index. The length and the indexes are specified as 32-bit integers.
    Syntax
    'Declaration
     
    
    Public Shared Sub Swap( _
       ByVal source As IntervalArray(Of T), _
       ByVal sourceIndex As Integer, _
       ByVal target As IntervalArray(Of T), _
       ByVal targetIndex As Integer, _
       ByVal length As Integer _
    ) 
    'Usage
     
    
    Dim source As IntervalArray(Of T)
    Dim sourceIndex As Integer
    Dim target As IntervalArray(Of T)
    Dim targetIndex As Integer
    Dim length As Integer
     
    IntervalArray(Of T).Swap(source, sourceIndex, target, targetIndex, length)

    Parameters

    source
    The IntervalArray that contains the data to swap.
    sourceIndex
    A 32-bit integer that represents the index in the source at which swapping begins.
    target
    The IntervalArray that receives the data.
    targetIndex
    A 32-bit integer that represents the index in the target at which storing begins.
    length
    A 32-bit integer that represents the number of elements to swap.
    See Also